/*  
 *  Nanjing JIYU Technology Co.,Ltd All rights reserved.
 *  Copyright (C) 2022 
 *  ==============================================================
 * 
 *  status.h
 *    底盘运行状态结构体类型
 *
 *  --------------------------------------------------------------
 *  
 */

#ifndef _STATUS_H
#define _STATUS_H

typedef enum
{
  automatic,
  controlled,
} control_mode_t;


typedef struct
{
  control_mode_t control_mode;   	/* 运行模式，自动or遥控     */

  void *ps2_cmd;        					/* 遥控器指令结构体 */

  unsigned char location;        	/* 自动运行时，当前所在位置     */
  unsigned char destination;     	/* 自动运行时，目标位置         */
  
  unsigned char color_msg;        /* 来自色彩传感器的消息         */

} status_t;

extern status_t status;

#endif




